package top.ezzz;


import io.grpc.solon.annotation.EnableGrpc;
import lombok.extern.slf4j.Slf4j;
import org.noear.solon.Solon;
import org.noear.solon.SolonApp;
import org.noear.solon.annotation.SolonMain;
import top.ezzz.rpc.server.AddressBookService;

@EnableGrpc
@SolonMain
@Slf4j
public class SolonRpcApp {

    public static void main(String[] args) {
        SolonApp solonApp = Solon.start(SolonRpcApp.class, args);

        AddressBookService bean = solonApp.context().getBean(AddressBookService.class);
        log.info("grpc 服务启动成功，bean: {}", bean);

    }
}